package com.sxpi.pug.alipay;

import com.sxpi.pug.service.AliPayServiceImpl;
import com.sxpi.pug.service.IAliPayService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: 董伟豪
 * @Date: 2022/6/10 15:56
 */
@Configuration
@ConditionalOnClass(IAliPayService.class)
@EnableConfigurationProperties(AliPayProperties.class)
public class AliPayAutoConfiguration  {

    @Bean
    public IAliPayService aliPayService(){
        return new AliPayServiceImpl();
    }

}
